package org.jsola.hr.dao;

import org.apache.ibatis.annotations.Param;
import org.jsola.core.Page;
import org.jsola.hr.entity.SaleRebatesRulesDO;
import org.jsola.hr.query.SaleRebatesRulesQuery;
import org.jsola.hr.vo.SaleRebatesRulesListVO;
import org.jsola.orm.mapper.IJsolaMapper;
import org.jsola.user.core.TokenUser;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 返费规则
 *
 * @author zhr
 */
@Repository("hrSaleRebatesRulesDAO")
public interface ISaleRebatesRulesDAO extends IJsolaMapper<SaleRebatesRulesDO> {

    /**
     * 查询规则绑定的用工单位和用工单位下的销售
     *
     * @param query  查询参数
     * @param siteId 站点
     * @return 绑定的用工单位和用工单位下的销售
     */
    List<SaleRebatesRulesListVO> selectBindCompany(@Param("query") SaleRebatesRulesQuery query,
                                                   @Param("siteId") String siteId);

}

